 <?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

/*Route::get('/', function () {
    return view('welcome');
});*/
/*Route::post('auth/register',
[ 
'middleware'=>'App\Http\Middleware\EmailMiddleware',
'uses'=>'Auth\AuthController@postRegister'
]
);
*/
//用户登录注册
Route::get('auth/register', 'Auth\AuthController@getRegister');
Route::post('auth/register', 'Auth\AuthController@postRegister');
Route::get('auth/login', 'Auth\AuthController@getLogin');
Route::post('auth/login', 'Auth\AuthController@postLogin');
Route::get('auth/logout', 'Auth\AuthController@getLogout');




//个人中心

Route::get('/home','PersonalController@sc' );//用户中心首页



Route::get('user/sc', 'PersonalController@sc');//我的收藏
Route::get('user/pl','PersonalController@pl');//我的评论
Route::get('user/dpl/{aid}','PersonalController@dpl');//取消评论
Route::get('user/shezhi', 'PersonalController@shezhi');//用户个人设置展示
Route::post('user/shezhi/', 'PersonalController@shezhipost');//用户修改个人资料 post数据 
Route::get('user/password','PersonalController@password');//修改密码
Route::post('user/password', 'PersonalController@passwordpost');//修改密码post
Route::get('user/head','PersonalController@head');//修改头像
 




//主页展示
Route::get('/', 'ProController@index');
Route::get('remen', 'ProController@remen');
Route::get('jingxuan', 'ProController@jingxuan');


//展示栏目\频道
Route::get('channel', 'ProController@channel');
Route::get('album', 'ProController@album');


//子频道所有文章展示
Route::get('idea/{cid}','ProController@idea');


//展示详细信息页




//后台
/*Route::get('admin/artadd','AdminController@artadd');//后台添加电影资讯入口表单
Route::post('admin/artadd','AdminController@artpost');//接收表单数据并入文章库

Route::get('admin/catadd','AdminController@catadd');//后台添加新栏目入口表单
Route::post('admin/catadd','AdminController@catpost');//接收栏目并入库*/

Route::get('admin/index','AdminController@index');
Route::get('admin/add','AdminController@add');//添加页
Route::post('admin/add','AdminController@addpost');
Route::get('admin/lists','AdminController@lists');//列表页
Route::get('admin/update/{aid}','AdminController@update');//修改
Route::post('admin/update/{aid}','AdminController@updatepost');//修改
Route::get('admin/del/{aid}','AdminController@del');//删除
Route::get('admin/pass','AdminController@pass');//修改密码
Route::get('admin/wxlists','AdminController@wxlists');//微信用户列表

//搜索
Route::get('ss','SsController@ss');


//收集用户collection
//展示收集用户数据表单
//收集用户数据如collection表
//展示修改添加用户提交数据
Route::get('cap/{mobile}','CaptchaController@send');



//忘记密码邮件验证并修改
Route::get('password/email', 'Auth\PasswordController@getEmail');
Route::post('password/email', 'Auth\PasswordController@postEmail');
// 密码重置路由...
Route::get('password/reset/{token}', 'Auth\PasswordController@getReset');
Route::post('password/reset', 'Auth\PasswordController@postReset');
Route::get('credit/{str}','OauthController@credit');


//展示详细信息页
Route::get('pro/{aid}', 'PronController@pro');
Route::post('pro', 'PronController@propost');
Route::any('dz', 'PronController@dz');
Route::any('sc', 'PronController@sc');
Route::any('pl', 'PronController@pl');

Route::any('dlpl/{aid}',
[ 
'middleware'=>'App\Http\Middleware\Authenticate',
'uses'=>'PronController@dlpl'
]
);


Route::get('check/{str}','CaptchaController@check');

Route::any('wx' , 'WxController@wechat');
Route::get('auth/geetest','Auth\AuthController@getGeetest');
Route::get('yzm','OauthController@showyzm');
